<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			//var str='{"id":45,"name":"zhangsan"}';
			var str='"id":45,"name":"zhangsan"}';
			try{
				var obj=JSON.parse(str);
				alert(obj);
				alert(obj.id);
			}catch(e){
				alert(e);
			}
		</script>
	</head>
	<body>
	</body>
</html>
